<?php use_helper('Javascript','Nifty') ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<?php include_http_metas() ?>
<?php include_metas() ?>

<?php include_title() ?>

<?php if (has_slot('gmapheader')): ?>
  <?php include_slot('gmapheader') ?>
<?php endif; ?>

<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body>
  <div id="container">

    <div id="hdr">
      <?php include_partial('global/header') ?>
    </div>

    <div id="body">
      <div id="menu">
        <?php include_partial('global/navigation') ?>
      </div>

      <div id="main">
        <?php echo $sf_data->getRaw('sf_content') ?>
        <div id="background">
          <?php echo image_tag('background.png','class="no-border" size=200x245'); ?>
          <div id="tutorcount">
            <h2>Tutor Count</h2>
		<div id="ajaxcount"><?php echo TutorPeer::doCount(new Criteria()); ?></div> registered
          </div>
          <?php echo periodically_call_remote(array(
                    'frequency' => 60,
                    'update'    => 'ajaxcount',
                    'url'       => '@tutorcount',
                    )) ?>
        </div>
      </div>
    </div>

    <div id="footer">
      <?php include_partial('global/footer') ?>
    </div>
  </div>
</body>
</html>
<?php echo javascript_tag( nifty_round_elements("div#menu a","big transparent top") ) ?>
<?php echo javascript_tag( nifty_round_elements("div#body","big") ) ?>
<?php echo javascript_tag( nifty_round_elements("div#main","big tr br") ) ?>
<?php echo javascript_tag( nifty_round_elements("div#main,div#side","same-height none") ) ?>
<?php echo javascript_tag( nifty_round_elements("div#side","big tl bl") ) ?>
<?php echo javascript_tag( nifty_round_elements("div#container","bottom") ) ?>
<?php echo javascript_tag( nifty_round_elements("div#tutorcount","big") ) ?>